<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 86176
  Date: 2024/10/28
  Time: 15:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>
        <title>
        <c:if test="${book.id!=null}">修改商品</c:if>
        <c:if test="${book.id==null}">添加商品</c:if>
    </title>
</head>
<body>

<form action="/book?userRequest=save" method="post">
    <table>
        <tr>
            <%--TODO--%>
            <td>
                <input type="hidden" name="id" value="${book.id}">
            </td>
        </tr>
        <tr>
            <td>图书名称</td>
            <td><input type="text" name="bname" value="${book.bname}"></td>
        </tr>
        <tr>
            <td>图书作者</td>
            <td><input type="text" name="author" value="${book.author}"></td>
        </tr>

        <tr>
            <td>图书卖价</td>
            <td><input type="text" name="salePrice" value="${book.salePrice}"></td>
        </tr>
        <tr>
            <td>图书进价</td>
            <td><input type="text" name="costPrice" value="${book.costPrice}"></td>
        </tr>
        <tr>
            <td>分类编号</td>
            <td><input type="text" name="classify" value="${book.classify}"></td>
        </tr>
        <tr>
            <td><input type="submit" value="提交"></td>
            <td><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>

</body>
</html>
